<?php

ob_start();

require "header.php";
require "display_functions.php";

if (isset($_GET['kn'])) $kn = $_GET['kn'];
else $kn = 0;

if (isset($_GET['id'])) $id = $_GET['id'];
else $id = 0;

$allianceImage = $id;
		
if (!(file_exists("alliance/". $allianceImage . ".png")))
{
	$allianceImage = "noImage";
}	

?>

<tr>
	<th><?php echo(getAllianceName($id)); ?></th>
</tr>
<tr>
	<td style="text-align:center;">
		<table style="width:100%">
			<tr>
				<td style="width:64px"><img class="bigShipImage" src="alliance/<?php echo($allianceImage);?>.png" /></td>
				<td style="width:33%"><a href="akills.php?id=<?php echo($id); ?>"><img border="0" src="images/kills.png" /><br/>kills</a></td>
				<td style="width:33%"><a href="alosses.php?id=<?php echo($id); ?>"><img border="0" src="images/losses.png" /><br/>losses</a></td>
				<td style="width:33%"><img border="0" src="images/corp.png" /><br />members</td>
			</tr>
		</table>
	</td>			
</tr>
<tr>
	<th>Losses</th>
</tr>
<?php 

drawAllianceLosses($id, 10, $kn); 

require "footer.php";

ob_end_flush();

?>